import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import components from './components'
// 自定义指令
import defineDirective from '@/directive/index'
// 引入全局初始化样式
import 'normalize.css'
import '@/styles/common.less'

import Message from '@/components/Message'
const app = createApp(App)
app.config.globalProperties.$message = Message
// 插件的使用，在main.js使用app.use(插件)
createApp(App).use(store).use(router).use(components).use(defineDirective).mount('#app')
